﻿using BHan.Context;
using BHan.VM.IndexVM;
using CommunityToolkit.Mvvm.Input;
using HandyControl.Controls;
using Microsoft.Win32;
using System.IO;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Media;
using System.Windows.Media.Imaging;

namespace BHan.View
{
    /// <summary>
    /// PageIndex.xaml 的交互逻辑
    /// </summary>
    public partial class PageIndex : Page
    {
        public PageIndex()
        {
            InitializeComponent();
            PageIndexVM vm = App.Current.Services.GetServiceByName<PageIndexVM>("PageIndexVM");
            this.DataContext = vm;
            vm.RichTextContent = richTextBox;

        }

         
    }
}
